folder comparisons

Wanted to print the name of the current folder to understand the format and then use this for flow control  via if statement in another program

My code

Folder folder1

folder1= current

print folder1

 

But I get "incorrect arguments for print"

 

My ultimate goal is to use folder names as part of flow control such as

Folder folder1

folder1= current

if (folder1 = "c:\DOORS\Level 4") print "\nLevel 4"

 

Thank you

 

 

 


Reality - Tue Jan 10 10:44:10 EST 2017

Re: folder comparisons
PekkaMakinen - Tue Jan 10 11:07:04 EST 2017

A Folder type variable is not a text path.

If you want to print the folder path, use "fullName folder1" or just for the name "name folder1".

Check Folder and fullName in the DXL Reference / Help.

Re: folder comparisons
Reality - Tue Jan 10 13:30:20 EST 2017

Okay... got it printing now.  Thank you